import { createRouter, createWebHashHistory } from 'vue-router'
import HomeView from '../views/home/step.vue'


const routes = [

  //登录页路由
  {
    path: '/',
    name: 'login',
    meta: {
      hidden: true
    },


    component: () => import('../views/login/index.vue')
  },
  //主页的全部路由
  {
    path: '/step',
    name: 'step',
    component: () => import('../views/home/step.vue'),
  },
  {
    path: '/step1',
    name: 'step1',
    meta: {
      hidden: true
    },
    component: () => import('../views/home/step1.vue')
  },
  {
    path: '/step2',
    name: 'step2',
    meta: {
      hidden: true
    },
    component: () => import('../views/home/step2.vue')
  },
  {
    path: '/step3',
    name: 'step3',
    meta: {
      hidden: true
    },
    component: () => import('../views/home/step3.vue')
  },
  {
    path: '/step4',
    name: 'step4',
    meta: {
      hidden: true
    },
    component: () => import('../views/home/step4.vue')
  },
  {
    path: '/step5',
    name: 'step5',
    meta: {
      hidden: true
    },
    component: () => import('../views/home/step5.vue')
  },
  {
    path: '/step6',
    name: 'step6',
    meta: {
      hidden: true
    },
    component: () => import('../views/home/step6.vue')
  },
  {
    path: '/step7',
    name: 'step7',
    meta: {
      hidden: true
    },
    component: () => import('../views/home/step7.vue')
  },



  //活动路由
  {
    path: '/activity',
    name: 'activity',
    component: () => import('../views/activity/active.vue')
  },
  {
    path: '/care',
    name: 'care',
    component: () => import('../views/activity/care.vue'),
    meta: {
      hidden: true
    },
  },
  {
    path: '/care1',
    name: 'care1',
    component: () => import('../views/activity/care1.vue'),
    meta: {
      hidden: true
    },
  },
  // 信息页面
  {
    path: '/message',
    name: 'message',
    component: () => import('../views/message/index.vue'),
    children: [
      // 二级路由
      {
        path: 'information',
        name: 'information',
        component: () => import('../views/message/information.vue'),
      },
      // 好友
      {
        path: 'friends',
        name: 'friends',
        component: () => import('../views/message/friends.vue'),
      },
      // 群组
      {
        path: 'group',
        name: 'group',
        component: () => import('../views/message/group.vue')
      }
    ]
  },
  ,
  // 好友信息展示
  {
    path: '/friendinfor',
    name: 'friendinfor',
    meta: {
      hidden: true
    },
    component: () => import('../views/message/friendInfor.vue'),
  },
  // 个人聊天界面
  {
    path: '/chat',
    name: 'chat',
    meta: {
      hidden: true
    },
    component: () => import('../views/message/chat.vue'),
  },
  // 群组聊天界面
  {
    path: '/groupchat',
    name: 'groupchat',
    component: () => import('../views/message/groupChat.vue'),
  },
  // 新建群组路由
  {
    path: '/newgroup',
    name: 'newgroup',
    meta: {
      hidden: true
    },
    component: () => import('../views/message/newGroup.vue'),
  },
  //个人中心
  {
    path: '/my',
    name: 'my',

    component: () => import('../views/my/index.vue')
  },
  //助手页的路由
  {
    path: '/map',
    name: 'map',
    meta: {
      hidden: true
    },
    component: () => import('../views/map/index.vue')
  },
  //预约
  {
    path: '/order',
    name: 'order',
    meta: {
      hidden: true
    },
    component: () => import('../views/order/order.vue')
  },
  {
    path: '/confirm',
    name: 'confirm',
    meta: {
      hidden: true
    },
    component: () => import('../views/order/confirm.vue')
  },
  {
    path: '/assistant',
    name: 'assistant',
    component: () => import('../views/assistant/index.vue')
  },
  {
    path: '/notice',
    name: 'notice',
    meta: {
      hidden: true
    },
    component: () => import('../views/assistant/notice.vue')
  },
  {
    path: '/top',
    name: 'top',
    meta: {
      hidden: true
    },
    component: () => import('../views/assistant/top.vue')
  },
  {
    path: '/top1',
    name: 'top1',
    meta: {
      hidden: true
    },
    component: () => import('../views/assistant/top1.vue')
  },
  {
    path: '/top2',
    name: 'top2',
    meta: {
      hidden: true
    },
    component: () => import('../views/assistant/top2.vue')
  },
  {
    path: '/top3',
    name: 'top3',
    meta: {
      hidden: true
    },
    component: () => import('../views/assistant/top3.vue')
  },
  {
    path: '/top4',
    name: 'top4',
    meta: {
      hidden: true
    },
    component: () => import('../views/assistant/top4.vue')
  },

  //个人头像
  {
    path: '/card1',
    name: 'card1',
    meta: {
      hidden: true
    },
    component: () => import('../views/my/card1.vue')
  },
  // 个人昵称
  {
    path: '/card',
    name: 'card',
    meta: {
      hidden: true
    },
    component: () => import('../views/my/card.vue')
  },
  // 个人钱包
  {
    path: '/package',
    name: 'package',
    meta: {
      hidden: true
    },
    component: () => import('../views/my/package.vue')
  },
  //抽奖页面
  {
    path: '/draw',
    name: 'draw',
    meta: {
      hidden: true
    },
    component: () => import('../views/my/draw.vue')
  },
  //所有订单
  {
    path: '/alllist',
    name: 'alllist',
    meta: {
      hidden: true
    },
    component: () => import('../views/my/alllist.vue')
  },
  //美食订单
  {
    path: '/food',
    name: 'food',
    meta: {
      hidden: true
    },
    component: () => import('../views/my/food.vue')
  },
  //游玩订单
  {
    path: '/buy',
    name: 'buy',
    meta: {
      hidden: true
    },
    component: () => import('../views/my/buy.vue')
  },
  //咖助订单
  {
    path: '/sever',
    name: 'sever',
    meta: {
      hidden: true
    },
    component: () => import('../views/my/sever.vue')
  },
  //游玩订单
  {
    path: '/play',
    name: 'play',
    meta: {
      hidden: true
    },
    component: () => import('../views/my/play.vue')
  },
  {
    path: '/top5',
    name: 'top5',
    meta: {
      hidden: true
    },
    component: () => import('../views/assistant/top5.vue')
  },
  {
    path: '/top6',
    name: 'top6',
    meta: {
      hidden: true
    },
    component: () => import('../views/assistant/top6.vue')
  },
  {
    path: '/top7',
    name: 'top7',
    meta: {
      hidden: true
    },
    component: () => import('../views/assistant/top7.vue')
  },
  {
    path: '/top8',
    name: 'top8',
    meta: {
      hidden: true
    },
    component: () => import('../views/assistant/top8.vue')
  },
  {
    path: '/top9',
    name: 'top9',
    meta: {
      hidden: true
    },
    component: () => import('../views/assistant/top9.vue')
  },
  {
    path: '/top10',
    name: 'top10',
    meta: {
      hidden: true
    },
    component: () => import('../views/assistant/top10.vue')
  },
  {
    path: '/top11',
    name: 'top11',
    meta: {
      hidden: true
    },
    component: () => import('../views/assistant/top10.vue')
  },
  {
    path: '/help',
    name: 'help',
    meta: {
      hidden: true
    },
    component: () => import('../views/assistant/help.vue')
  },
  {
    path: '/inform',
    name: 'inform',
    meta: {
      hidden: true
    },
    component: () => import('../views/assistant/inform.vue')
  },
  //个人中心
  {
    path: '/my',
    name: 'my',
    component: () => import('../views/my/index.vue')
  },
  {
    path: '/self',
    name: 'self',
    meta: {
      hidden: true
    },
    component: () => import('../views/my/self.vue')
  },
  {
    path: '/card',
    name: 'card',
    meta: {
      hidden: true
    },
    component: () => import('../views/my/card.vue')
  },
  {
    path: '/telecommunication',
    name: 'telecommunication',
    meta: {
      hidden: true
    },
    component: () => import('../views/assistant/telecommunication.vue')
  },

  {
    path: '/grid4',
    name: 'grid4',
    meta: {
      hidden: true
    },
    component: () => import('../views/home/grid4.vue')
  },
  {
    path: '/assia1',
    name: 'assia1',
    meta: {
      hidden: true
    },
    component: () => import('../views/assistant/assia1.vue')
  },
  {
    path: '/restaurant',
    name: 'restaurant',
    meta: {
      hidden: true
    },
    component: () => import('../views/home/restaurant.vue')
  },
  {
    path: '/restaurant1',
    name: 'restaurant1',
    meta: {
      hidden: true
    },
    component: () => import('../views/home/restaurant1.vue')
  },
  {
    path: '/restaurant2',
    name: 'restaurant2',
    meta: {
      hidden: true
    },
    component: () => import('../views/home/restaurant2.vue')
  },
  {
    path: '/restaurant3',
    name: 'restaurant3',
    meta: {
      hidden: true
    },
    component: () => import('../views/home/restaurant3.vue')
  },
  {
    path: '/restaurant4',
    name: 'restaurant4',
    meta: {
      hidden: true
    },
    component: () => import('../views/home/restaurant4.vue')
  },
  {
    path: '/restaurant5',
    name: 'restaurant5',
    meta: {
      hidden: true
    },
    component: () => import('../views/home/restaurant5.vue')
  },
  {
    path: '/restaurant6',
    name: 'restaurant6',
    meta: {
      hidden: true
    },
    component: () => import('../views/home/restaurant6.vue')
  },




]


const router = createRouter({
  history: createWebHashHistory(import.meta.env.BASE_URL),
  routes
})

export default router
